home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ RIVA TNT 1.xpl < prev    next >
Text File  |  1999-10-13  |  3KB  |  109 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="5"
  4. "UIPATH"="Hardware\Video Cards\Riva TNT"
  5. "NAME"="General Settings"
  6. "VERSION"="1.30"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Display all properties in the NVIDIA Display Panel applet"
  9. "TEXT 2"="Enable SGIS multitexturing"
  10. "TEXT 3"="Enable DirectX 6.1 support (else DirectX 5.2 support)"
  11. "TEXT 4"="Enable MMX CPU commands"
  12. "TEXT 5"="Enable Vertical Blank"
  13. "DESCRIPTION 1"="Some options for your Riva TNT and Riva TNT 2 3D card." 
  14. "DESCRIPTION 2"="Enable "SGIS multitexturing" for better image quality, disable it to have better performance and sacrifice some video quality (default: enabled)."
  15. "DESCRIPTION 3"="Enable "DirectX 6.1 support" and "MMX CPU commands" for even better performance."
  16. "DESCRIPTION 4"="If "Vertical Blank" is disabled, it might also give you a performance gain."
  17. "DESCRIPTION 5"="NOTE: This plug-in is only for use on Windows 95/98."
  18. "AUTHOR"="Xteq Systems"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  21. "COMMENT 2"="Thanks to CptSiskoX!"
  22.  
  23.  
  24. sPC="HKLM\SOFTWARE\NVIDIA Corporation\Riva TNT\"
  25. sV1="HKLM\Software\NVIDIA Corporation\Riva TNT\NVTweak\PowerUser" 'DW
  26. sV2="HKLM\Software\NVIDIA Corporation\Riva TNT\OpenGL\ForceMultiTexture" 'DW
  27. sV3="HKLM\Software\NVIDIA Corporation\RIVA TNT\Direct3D\DX6ENABLE" 'DW
  28. sV4="HKLM\Software\NVIDIA Corporation\RIVA TNT\Direct3D\CPUOPTDISABLE" 'DW
  29. sV5="HKLM\Software\NVIDIA Corporation\RIVA TNT\Direct3D\NOVSYNC" 'DW
  30. Sub Plugin_Initialize 
  31. If (GetWinVer=1 or GetWinVer=3) and RegPathExists(sPC) then
  32.    i=RegReadValue(sV1)
  33.    if i=1 then SetUiElement 1,true
  34.  
  35.    i=RegReadValue(sV2)
  36.    if i=1 then SetUiElement 2,true
  37.  
  38.    i=RegReadValue(sV3)
  39.    if i=1 then SetUiElement 3,true
  40.  
  41.    i=RegReadValue(sV4)
  42.    if i=0 and IsEmpty(i)=false then SetUiElement 4,true
  43.  
  44.    i=RegReadValue(sV5)
  45.    if i=0 or IsEmpty(i)=true then SetUiElement 5,true
  46. else
  47.    Call Disable()
  48. end if  
  49. End Sub
  50.  
  51.  
  52. Sub Plugin_CheckData(ElementIndex)
  53. End Sub
  54.  
  55.  
  56.  
  57. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  58.  b=GetUIElement(1)
  59.  if b=true then
  60.     i=1
  61.  else
  62.     i=0
  63.  end if
  64.  Call RegWriteValue(sV1,i,2)
  65.  
  66.  b=GetUIElement(2)
  67.  if b=true then
  68.     i=1
  69.  else
  70.     i=0
  71.  end if
  72.  Call RegWriteValue(sV2,i,2)
  73.  
  74.  b=GetUIElement(3)
  75.  if b=true then
  76.     i=1
  77.  else
  78.     i=0
  79.  end if
  80.  Call RegWriteValue(sV3,i,2)
  81.  
  82.  b=GetUIElement(4)
  83.  if b=true then
  84.     i=0
  85.  else
  86.     i=1
  87.  end if
  88.  Call RegWriteValue(sV4,i,2)
  89.  
  90.  
  91.  b=GetUIElement(5)
  92.  if b=true then
  93.     i=0
  94.  else
  95.     i=1
  96.  end if
  97.  Call RegWriteValue(sV5,i,2)
  98.  
  99.  
  100.  Call Restart()
  101. End Sub
  102.  
  103.  
  104. Sub Plugin_Terminate 
  105. End Sub
  106.  
  107.  
  108.  
  109.